package cn.com.duiba.millionaire.center.spider.common;

import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

/**
 * Created by sunchangji on 2018/6/6.
 */
public class SpiderRedis {
    private static JedisPool jedisPool;

    public static JedisPool getJedisPool(){
        JedisPoolConfig config = new JedisPoolConfig();
        config.setMaxTotal(100);
        config.setMaxIdle(8);
        config.setMinIdle(4);

        jedisPool = new JedisPool(config, "dev.config.duibar.com", 6379, 500, "duiba123");
        return jedisPool;
    }
}
